package com.example.administrator.myapplication.evaluate;

import android.app.Activity;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.ImageView;

import com.example.administrator.myapplication.R;

/**
 * Created by Administrator on 2018/1/19.
 */

public class EvaluateMainActivity extends Activity{
    private Toolbar toolbar;
    private ImageView iv_heard_assess;
    private ImageView iv_muscle_assess;
    private ImageView iv_soft_assess;
    private ImageView iv_body_assess;
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_evaluate_main);
        toolbar= (Toolbar) findViewById(R.id.toolbar_evaluate_main);
        toolbar.setNavigationIcon(R.mipmap.custom_back);
        toolbar.setTitle("综合评测");
        toolbar.setTitleMarginStart(200);
        toolbar.setTitleTextColor(Color.parseColor("#ffffff"));
        toolbar.setNavigationOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
        init();

        iv_heard_assess.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent =new Intent(EvaluateMainActivity.this,HeardTestAssess.class);
                startActivity(intent);
            }
        });

        iv_muscle_assess.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent =new Intent(EvaluateMainActivity.this,MuscleTestAssess.class);
                startActivity(intent);
            }
        });

        iv_soft_assess.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent =new Intent(EvaluateMainActivity.this,SoftTestAssess.class);
                startActivity(intent);
            }
        });

        iv_body_assess.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent =new Intent(EvaluateMainActivity.this,BodyTestAssess.class);
                startActivity(intent);
            }
        });

    }

    public void init(){
        iv_heard_assess = (ImageView) findViewById(R.id.iv_heard_logo);
        iv_muscle_assess = (ImageView) findViewById(R.id.iv_muscle_logo);
        iv_soft_assess = (ImageView) findViewById(R.id.iv_flexibility_logo);
        iv_body_assess = (ImageView) findViewById(R.id.iv_body_logo);
    }
}
